{extend name="layout"}
{block name="body"}
<section class="wld-content">
    <div class="page_title">增员服务</div>
    <div class="page_title_obj">
        <a class="wld-btn " href="{:url('index/increase/add')}">新增</a>
        <a class="wld-btn" href="{:url('index/increase/import')}">导入</a>
        <div class="title-seach">
        	<input type="hidden" name="status" id="status" value="{$Think.get.status}" />
            <input type="text" name="search" value="{$Think.get.search}" lay-verify="required" placeholder="搜索" autocomplete="off"
                   class="wld-input-bg">
            <i class="iconfont iconfangdajing"></i>
        </div>
    </div>
    <div class="con_box layui-form">
        <div class="con_tag">
            <a href="{:url('index/increase/index')}" {if empty($Think.get.status) ||  $Think.get.status eq 0} class="on" {/if}>全部</a>
            <a href="{:url('index/increase/index')}?status=1" {if $Think.get.status eq 1} class="on" {/if}>待审核（{$to_examine|default='0'}）</a>
            <a href="{:url('index/increase/index')}?status=2" {if $Think.get.status eq 2} class="on" {/if}>已审核</a>
            <a href="{:url('index/increase/index')}?status=3" {if $Think.get.status eq 3} class="on" {/if}>未通过（{$to_pass|default='0'}）</a>
            <div class="tag_right">
                {if $Think.get.status eq 3}<span class="tag_right_del" data-del-table data-confirm='是否确认删除' data-del-url='{:url('index/increase/del')}'>删除所选项</span>{/if}
                <span class="tag_right_exp" data-export-table data-export-url='{:url('index/increase/export')}' >导出所选项</span>
            </div>
        </div>
        <div class="con_table">
            <table class="layui-table table-all" lay-skin="nob" data-export-name="table">
                {notempty name='list'}
                <colgroup>
                    <col width="80">
                    <col width="164">
                    <col width="132">
                    <col width="234">
                    <col width="178">
                    <col width="160">
                    <col width="100">
                    <col width="104">
                </colgroup>
                <thead>
                <tr>
                    <th><input type="checkbox" name="" lay-filter="allChoose"  title="" lay-skin="primary"></th>
                    <th>编号</th>
                    <th>姓名</th>
                    <th>身份证号</th>
                    <th>手机号码</th>
                    <th>委托日期</th>
                    <th>审核状态</th>
                    <th class="text-center">操作</th>
                </tr>
                </thead>
                {/notempty}
                <tbody>
                {foreach $list as $key=>$vo}
                <tr>
                    <td><input type="checkbox" name="" lay-filter="tdChoose"  value="{$vo.id|default='0'}" title="" lay-skin="primary"></td>
                    <td>{$vo.code|default=''}</td>
                    <td>{$vo.name|default=''}</td>
                    <td>{$vo.id_number|default=''}</td>
                    <td>{$vo.mobile|default=''}</td>
                    <td>{$vo.create_at|default=''}</td>
                    <td>
                        {if $vo.status eq 1}<span class="color-green">待审核</span>
                        {elseif $vo.status eq 2}<span class="color-desc">已审核</span>
                        {elseif $vo.status eq 3}<span class="color-red">未通过</span>
                        {/if}
                    </td>
                    <td class="text-center table_obj">
                    	{if $vo.status eq 1}
                        <a href='{:url("index/increase/edit")}?id={$vo.id}'>编辑</a>
                        {elseif $vo.status eq 2}
                        <a href='{:url("index/increase/view")}?id={$vo.id}'>查看</a>
                        {elseif $vo.status eq 3}
                        <a href='{:url("index/increase/feedback")}?id={$vo.id}'>编辑</a>
                        {/if}
                    </td>
                </tr>
                {/foreach}
                </tbody>
            </table>
            {empty name='list'}
            <div class="con_blank">
                <img src="__ROOT__/static/index/img/con_blank_img.png">
                <p class="con_blank_title">暂无数据</p>
                <!-- <p class="con_blank_con">暂无数据，请手动添加</p> -->
            </div>
            {else}{$list|raw|default=''}{/empty} 
        </div>
    </div>
</section>
{/block}
{block name="script"}
{/block}
